﻿@{
    ViewBag.Title = "进口计划汇总表";
}

@section Header {
    <a href="#" data-rel="back" data-role="button">返回</a>
    <h1>@ViewBag.Title</h1>
}


<script type="text/javascript">
    $(function () {
        $(document).on("pagecreate", function (event) {
            var cc = $("li table").prev("a");
            cc.hide()
        });
       
        //初始化日期控件
        var opts = {
            preset: 'date', //日期
            theme: 'ios', //皮肤样式
            display: 'modal', //显示方式 
            mode: 'clickpick', //日期选择模式
            dateFormat: 'yy-mm-dd', // 日期格式
            setText: '确定', //确认按钮名称
            cancelText: '取消', //取消按钮名籍我
            dateOrder: 'yymmdd', //面板中日期排列格式
            dayText: '日', monthText: '月', yearText: '年', //面板中年月日文字
            endYear: 2020, //结束年份
        };
        $('input:jqmData(role="datebox")').scroller('destroy').scroller(opts)
       
    });
</script>

<style>
    .controlgroup-textinput {
        padding-top: .22em;
        padding-bottom: .22em;
    }
</style>

<div data-role="controlgroup" data-type="horizontal">
   @using (Ajax.BeginForm("ImportPartialView", new AjaxOptions { UpdateTargetId="list"})) { 
     
         <select name="dt" data-wrapper-class="controlgroup-textinput ui-btn" id="select-native-5">
            @{
       var dt = DateTime.Now.ToString("yyyy-MM-dd");
       var dt1 = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd");
       var dt2 = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd");

                <option value="@dt1">@dt1</option>
                <option value="@dt" selected="selected">@dt</option>
                <option value="@dt2">@dt2</option>
             }
    
       </select>
       <button type="submit" class="ui-btn ui-icon-search ui-btn-icon-right">查询</button> 
   }
</div>

<div id="list">
   @{
        Html.RenderAction("ImportPartialView", "Report");
    }
</div>


